/**
 * $Id$
 *
 * Unpublished Work Copyright 2013 Confirmit, Inc. All Rights Reserved.
 *
 * Last changed by $Author$
 * Last changed at $Date$
 */
package com.youtills.core.app.common;

import com.youtills.core.web.IRequestHandler;
import com.youtills.core.web.IResponse;
import javax.servlet.http.HttpServletResponse;

/**
 * TODO
 *
 * @author Ravi Kumar Chiluveru (ravic)
 * @since 12.2, (5/19/13 10:41 AM)
 */
public class Page404RequestHandler extends SiteLayout implements IRequestHandler{

    public IResponse handleRequest() {
        getContextBean().getResponse().setStatus(HttpServletResponse.SC_NOT_FOUND);
        return super.handleRequest();
    }

    public String getMainContentPage(){
        return "/WEB-INF/jsp/common/404.jsp";
    }
}
